package com.atguigu.dao;


import com.atguigu.pojo.TravelGroup;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelGroupDao {

    void groupAdd(TravelGroup travelGroup);

    /*
    插入中间表
     */
    void groupAndItemAdd(@Param("groupId") Integer groupId, @Param("ItemId") Integer ItemId);

    TravelGroup selectId(@Param("id") Integer id);

    void groupUdate(TravelGroup travelGroup);

    /*
    删除中间表关系
     */
    void deleteGroupIdItem(@Param("groupId") Integer groupId);

    Page<TravelGroup> selectPage(@Param("queryString") String queryString);

    List<Integer> findGroupAndItem(@Param("id")Integer id);

    List<TravelGroup> selectAll();

    /*
    根据套餐id查询旅游团信息
     */
    List<TravelGroup> selectSetmealAndGroupId(@Param("id") Integer id);
}
